
package com.tools.cleanmaster.model.item;

import android.content.Context;
import android.text.TextUtils;

import com.tools.cleanmaster.utils.PackageUtils;

/**
 * 应用内存垃圾
 */
public class AppMemItem extends TrashItem {
    private Context mContext;

    public AppMemItem(Context mContext) {
        this.mContext = mContext;
    }

    @Override
    public void clean() {
        cleanedFlag = true;
        if (!TextUtils.isEmpty(pkgName)) {
            PackageUtils.killPackage(mContext, pkgName);
        }
    }

}
